/*
 * Marker.cpp
 *
 *  Created on: 2009-12-13
 *      Author: jawora
 */
#include "Marker.h"

Stopa::Stopa() {
	x = -1;
	y = -1;
}

void Stopa::update(int xNew, int yNew) {
	if (x == -1) {
		x = xNew;
		y = yNew;
	} else {
		speedX = xNew - x;
		speedY = yNew - y;

		x = xNew;
		y = yNew;
	}
}

void Kolano::update(int xNew, int yNew, bool activeNew) {
	if (x == -1) {
		x = xNew;
		y = yNew;
	} else {
		speedX = xNew - x;
		speedY = yNew - y;

		x = xNew;
		y = yNew;
	}

	active = activeNew;

}

